package cn.exrick.xboot.modules.information.entity;

import cn.exrick.xboot.base.XbootBaseEntity;
import cn.exrick.xboot.common.constant.CommonConstant;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiModel;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @author Exrick
 */
@Data
@Entity
@Table(name = "t_information")
@TableName("t_information")
@ApiModel(value = "新消息通知（公告）")
public class Information extends XbootBaseEntity {

    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "标题")
    private String title;
    @ApiModelProperty(value = "部门")
    private String department;
    @ApiModelProperty(value = "url")
    private String url;


    @ApiModelProperty(value = "数据级别")
    private Integer rate;
    @ApiModelProperty(value = "数据来源（记录数据是从什么系统推送过来的）")
    private String source= CommonConstant.SOURCE;//默认本地数据标识
    @ApiModelProperty(value = "区分本地数据和异构数据1:本地 0：异构系统")
    private  String infoCode=CommonConstant.BDinfoCode;
    @ApiModelProperty(value = "内容")
    private String  conten;
    @ApiModelProperty(value = "新闻标识ID")
    private String infoId;


    @TableField(exist = false)
    @ApiModelProperty(value = "接口")
    private transient String urlInterface;
}